import request from '/@/utils/request'

//获取用户端注册的用户
export function getUserLists(data : any) {
  return request({
    url: '/api/admin/getUserLists',
    method: 'get',
    params: data,
  })
}

//七牛云文件上传
export function QiniuUpload(data : any) {
  return request({
    url: '/api/public/upload',
    method: 'post',
    params: data,
  })
}

//轮播图上传
export function addSwipers(data : any) {
  return request({
    url: '/api/admin/addSwipers',
    method: 'post',
    data,
  })
}

//获取轮播图列表
export function swiperLists(data : any) {
  return request({
    url: '/api/user/swiperLists',
    method: 'get',
    data,
  })
}

//删除轮播图
export function swiperDel(data : any) {
  return request({
    url: '/api/admin/swiperDel',
    method: 'get',
    params: data,
  })
}

//通过id获取用户详情
export function UserDetails(data : any) {
  return request({
    url: '/api/admin/UserDetails',
    method: 'get',
    params: data,
  })
}

//获取待审核的搭子列表
export function getSettledUsersList(data : any) {
  return request({
    url: '/api/admin/getSettledUsersList',
    method: 'get',
    params: data,
  })
}

//获取搭子详情
export function getSettledUserDetails(data : any) {
  return request({
    url: '/api/admin/getSettledUserDetails',
    method: 'get',
    params: data,
  })
}

//搭子审核
export function SettledUsersReview(data : any) {
  return request({
    url: '/api/admin/SettledUsersReview',
    method: 'post',
    data,
  })
}

//配置客服二维码和电话
export function service(data : any) {
  return request({
    url: '/api/admin/service',
    method: 'post',
    data,
  })
}

//获取配置信息
export function getSystemConfig(data : any) {
  return request({
    url: '/api/admin/getSystemConfig',
    method: 'get',
    params: data,
  })
}

//新增tag兴趣标签
export function Newtag(data : any) {
  return request({
    url: '/api/admin/Newtag',
    method: 'post',
    data,
  })
}

//获取tag兴趣标签
export function gettags(data : any) {
  return request({
    url: '/api/admin/gettags',
    method: 'get',
    data,
  })
}

//删除tag兴趣标签
export function deltags(data : any) {
  return request({
    url: '/api/admin/deltags',
    method: 'get',
    params:data
  })
}

//新增tag话题标签
export function NewdynamicsTags(data : any) {
  return request({
    url: '/api/admin/NewdynamicsTags',
    method: 'post',
    data,
  })
}

//获取tag话题标签
export function getdynamicsTags(data : any) {
  return request({
    url: '/api/admin/getdynamicsTags',
    method: 'get',
    data,
  })
}

//删除tag话题标签
export function dynamicsTagsdel(data : any) {
  return request({
    url: '/api/admin/dynamicsTagsdel',
    method: 'get',
    params:data
  })
}

//获取全部动态列表
export function getDynamicsLists(data : any) {
  return request({
    url: '/api/admin/getDynamicsLists',
    method: 'get',
    params:data
  })
}

//获取动态详情
export function getDynamicsDetails(data : any) {
  return request({
    url: '/api/admin/getDynamicsDetails',
    method: 'get',
    params:data
  })
}

//搭子审核
export function dynamicsReview(data : any) {
  return request({
    url: '/api/admin/dynamicsReview',
    method: 'post',
    data,
  })
}

//获取用户端全部订单列表
export function getOrderLists(data : any) {
  return request({
    url: '/api/admin/getOrderLists',
    method: 'get',
    params:data
  })
}

//通过id删除搭子审核记录并更新用户身份状态
export function userSchemaDelect(data : any) {
  return request({
    url: '/api/admin/userSchemaDelect',
    method: 'get',
    params:data
  })
}
